package com.sright.bcard.content.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.common.service.share.dto.page.PageParamRequest;
import com.sright.bcard.content.dal.entity.TemplateDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TemplateDOMapper extends BaseMapper<TemplateDO> {
    Integer count(@Param("keyword") String keyword);
    List<TemplateDO> selectByKeyword(@Param("keyword") String keyword, @Param("page") PageParamRequest request);

    List<TemplateDO> selectByType(int type);

    List<TemplateDO> allTemplateList();

    List<TemplateDO> templates();
}